{% extends 'base/index.html' %}
{% block top_nav_tool %} disabled border border-danger {% endblock %}
{% block section %}
<div class="container mt-1">
    <div class="row">
        <div class=" bg-light rounded ">
            <a onclick="replaceback('/tools/');" class="{{ 'disabled text-danger' if level == None else ''}} btn bg-white w-auto ">
                全部
            </a>
            {% for i in csfub2 %}
            <a onclick="replaceback('/tools/l={{ i.id }}');" class="{{ 'disabled text-danger' if level == i.id else ''}} btn  bg-white w-auto ">
                {{ i.name }}
            </a>
            {% endfor %}
        </div>
         {% for i in cswzb2 %}
            {% if level == i.w or level == None %}
         <a href="/tools/{{ i.id }}" class="d-block link-secondary col-xs-12 col-md-6 mt-1">
           <div class="info px-3 py-3 border shadow-sm bg-body-tertiary bg-white" style="border-radius: 1rem;">
                <h5 class="card-title text-truncate">{{ i.name }}</h5>
                <div class="card-text text-truncate-3h">{{ i.intor|safe }}</div>
                <span class="">
                    <i class="fa-solid fa-tag"></i>
                    {{ i.tag }}
                </span>
                <span class="">
                  <i class="fa-solid fa-user"></i>
                    {{ i.c }}
                </span>
                <span class="">
                    <i class="fa-solid fa-thumbs-up"></i>
                    {{ i.p }}
                </span>
            </div>
        </a>
            {% endif %}
        {% endfor %}
    </div>
</div>
{% endblock %}